import React, { useState } from "react";
import B from "./B";

export const context = React.createContext();
export default function A() {
  let [count, setcount] = useState(100);

  return (
    <context.Provider value={[count, setcount]}>
      <h1>这是a组件{[count]}</h1>
      <B></B>
    </context.Provider>
  );
}
